|
|
|
| |
|
|
|
|
If you click the Close button before you click the Build the Table button, you lose all your table definition information. You have to enter all the table definition data again before you can build the new table. |
|
|
|
|
|
|
|
|
|
|
When you add data to an existing data table, you cannot use Visdata to modify the table structure. You must first remove all records from the data table before you can make any modification to the structure. You can, however, add new fields to a table after data has been entered. |
|
|
|
|
|
|
|
|
Adding a New Index to the Database Using the Design Button |
|
|
|
|
|
|
|
|
You can add indexes to existing tables by selecting the table, clicking the alternate mouse button, and selecting Design . . . from the menu that appears. This option brings up the same input form you used to add fields to the database. Now let's add a Primary Key index for the NewTable you just created. |
|
|
|
|
| |
|
|
|
|
Even though Visdata allows you to enter New Index information during the New Tables process, you cannot build a new table and a new index for the same table at one time. Visdata must see the data table that already exists before it can create an index for that table. Use the Design mode of the Table Structure dialog box to add indexes to existing tables. |
|
|
|
|
|
|
|
|
|
|
Click the Add Index command button to bring up the Add Index dialog box. Enter PKNewTable as the index name. Click Field1 in the field list to make that field the source of the Primary Key index. Your screen should look like Figure 7.30. |
|
|
|
|
|
|
|
|
Be sure to click the OK button to add the index definition to the database. When you have added the index definition, click Close to exit the dialog. Your screen should now look like Figure 7.31. |
|
|
|
|
|